package com.codrim.cs.data.server.configuration;

import com.codrim.cs.data.server.dao.interceptor.ZoneTableInterceptor;

import org.mybatis.spring.boot.autoconfigure.ConfigurationCustomizer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Created by Liang.Zhuge on 10/05/2017.
 */
@Configuration
public class MybatisConfiguration {

    @Bean
    public ConfigurationCustomizer mybatisConfigurationCustomizer() {
        return configuration -> configuration.addInterceptor(new ZoneTableInterceptor());
    }

}
